import 'package:flutter/material.dart';

class Widget_AboutDialog_Page extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: Text("AboutDialog"),
        ),
        body: RaisedButton(
          onPressed: () {
            showDialog(
                context: context,
                builder: (BuildContext context) {
                  return AboutDialog(
                    applicationName: "名字",
                    applicationIcon: Image.asset("images/app.png"),
                    applicationVersion: "1.0.0",
                    children: <Widget>[
                      Text("内容内容内容内容内容内容内容"),
                    ],
                  );
                }
            );
          },
          child: Text("点击显示AboutDialog"),
        ),
      ),
    );
  }

}

/**
 *  通常用于传递企业或者app的官方信息，一般不用
 * const AboutDialog({
    Key key,
    this.applicationName,//应用名称
    this.applicationVersion,//应用版本
    this.applicationIcon,//应用图标
    this.applicationLegalese,//应用许可证
    this.children,//
    })
 */
